package com.mb.app.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.mb.app.dao.TbProductSpecsMapper;
import com.mb.app.domain.TbProductSpecs;
import com.mb.app.service.ITbProductSpecsService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品规格  服务实现类
 * </p>
 *
 * @author liliping
 * @since 2019-04-02
 */
@Service
public class TbProductSpecsServiceImpl extends ServiceImpl<TbProductSpecsMapper, TbProductSpecs> implements ITbProductSpecsService {

    @Override
    public int insertSelective(TbProductSpecs tbProductSpecs) {
        return this.baseMapper.insertSelective(tbProductSpecs);
    }

    @Override
    public List<TbProductSpecs> getProductSpecsList(Map<String,Object> colorMap ) {
        return this.baseMapper.selectBySpecsList(colorMap);
    }

    @Override
    public TbProductSpecs selectByProductSpecs(Map<String, Object> map) {
        return this.baseMapper.selectByProductSpecs(map);
    }


}
